s="CYTNZB"
while s!="":
    for c in s:
        if c=="N":
            break
        print(c,end="")
    s=s[:-1]
    
